package br.usp.ipq.extgwt.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.form.Label;
import com.gwtext.client.widgets.layout.HorizontalLayout;
import com.gwtext.client.widgets.layout.VerticalLayout;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class ExtGWTPanel implements EntryPoint {

	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {
		Panel panel = new Panel();
		panel.setBorder(false);
		panel.setPaddings(15);

		panel.setLayout(new HorizontalLayout(15));
	
		
		panel.add(new Panel("Item 1", 100, 150));
		panel.add(new Panel("Item 2", 75, 150));
		panel.add(new Panel("Item 3", 100, 150));
		
		Panel item4=new Panel("Item 4", 150, 300);
		item4.setLayout(new VerticalLayout(15));
		item4.add(new Label("Foo"));
		item4.add(new Label("Bar"));
		panel.add(item4);

		RootPanel.get().add(panel);
	}
}
